<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/default.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/component.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<script src="{$_C.hy_path}js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
             <div class="am-btn-group am-btn-group-xs">
            
            <button data-title="新建弹框" data-id="box_{$group_id}" data-href="index.php?g=admin&m=chat&a=box_content&id={$box.id}&group_id={$group_id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建弹框</button>
		   
		    </div>
            

           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
               <th class="table-title"></th>
                <th class="table-title">序号</th>
                <th class="table-type">弹框名称</th>
                <th class="table-date">类型</th>
				<th class="table-date">概率</th>
				<th class="table-date">是否外链</th>
                <th class="table-date">实际触发人数</th>
                <th class="table-date">限制触发人数</th>
                
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	{foreach from=$box_list item=box}
            <tr>
            	<td></td>
              <td>{$box.id}</td>
              <td>{$box.name}</td>
			   <td>{if $box.type==1} 个人信息框 {elseif $box.type==2}奖项框 {elseif $box.type==3}谢谢参与框 {/if}</td>
			     <td>
			     	{if $box.type==2}
			     	{$box.pby}
					{else}
					 - 
					 {/if}
					</td>
				<td>{if $box.is_extend_links ==1} 是 {else} 否 {/if} </td>
				<td>
					{if $box.type!=1}
			     	{$box.joinnums}
					{else}
					 - 
					 {/if}
				</td>
				 <td>
				 {if $box.type==2}
			     	{$box.limitnums}
					{else}
					 - 
					 {/if}
				 </td>
             
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-box am-btn-box-xs">
                    <button data-title="编辑弹框{$box.name}" data-id="editchatrule_{$box.id}" data-href="index.php?g=admin&m=chat&a=box_content&id={$box.id}&group_id={$group_id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                    <button data-param ="{ url:'index.php?g=admin&m=chat&a=del_box&id={$box.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  	
				  </div>
                </div>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  {$box_list_page}
  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
  
  
		
	</body>
</html>
